package com.kingwang.training.designpattern.visitor.deep.step4;

/**
 * 山地进攻模式
 *
 * @author King
 */
public class MountainAttackVisitor implements Visitor {
    @Override
    public void visit(MarineSoldier marine) {
        marine.hide();
        marine.attack();
    }

    @Override
    public void visit(FirebatSoldier firebat) {
        firebat.hide();
        firebat.attack();
    }

    @Override
    public void visit(Medic medic) {
        medic.hide();
    }
}
